package com.ruiysoft.service.sys;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruiysoft.controller.sys.dto.CalculationDto;
import com.ruiysoft.controller.sys.res.CalculationResponse;
import com.ruiysoft.entity.order.OrderMain;
import com.ruiysoft.entity.sys.SysMicroShop;
import com.ruiysoft.entity.sys.SysShopDistribution;

import javax.validation.Valid;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author huazengguang
 * @since 2018-10-27
 */
public interface ISysMicroShopService extends IService<SysMicroShop> {

    List<CalculationResponse> calculation(SysShopDistribution distribution, @Valid CalculationDto calculationDto, List<CalculationResponse> responses);

    List<CalculationResponse> calculationWxg(OrderMain orderMain);

    SysMicroShop selectSysMicroShopById(Long shopId);

    void clearSysMicroShopById(Long id);
}
